/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pkl53.controller;

import java.util.ArrayList;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import pkl53.converter.IntegerConverter;
import pkl53.model.B1Tempat;
import pkl53.model.B2Umumusaha;
import pkl53.model.B3Rinciusaha;
import pkl53.model.B3r15Pekerja;
import pkl53.model.Mahasiswa;
import pkl53.model.NoBs;
import pkl53.model.OpsiB1r4;
import pkl53.model.OpsiB3R34R35;
import pkl53.model.OpsiB3r10;
import pkl53.model.OpsiB3r13b;
import pkl53.model.OpsiB3r19;
import pkl53.model.OpsiB3r21;
import pkl53.model.OpsiB3r22b;
import pkl53.model.OpsiB3r22d;
import pkl53.model.OpsiB3r22f;
import pkl53.model.OpsiB3r23a;
import pkl53.model.OpsiB3r26;
import pkl53.model.OpsiB3r36;
import pkl53.model.OpsiB3r5;
import pkl53.model.OpsiB3r6;
import pkl53.model.OpsiYaTidakTidaktau;

import pkl53.view.BlokUsaha123;
import pkl53.view.BlokUsaha4;
import pkl53.view.BlokUsaha5;
import pkl53.view.BlokUsaha5B;
import pkl53.view.BlokUsaha5C;
import pkl53.view.BlokUsaha5D;

/**
 *
 * @author akhul
 */
public class SubmitAllControllerUsaha {

    private BlokUsaha123 panelBlok123;
    private BlokUsaha4 panelBlok4;
    private BlokUsaha5 panelBlok5;
    private BlokUsaha5B panelBlok5b;
    private BlokUsaha5C panelBlok5c;
    private BlokUsaha5D panelBlok5d;

    private B1Tempat b1KeterangantempatModel = new B1Tempat();
    private B2Umumusaha b2Umumusaha = new B2Umumusaha();
    private B3Rinciusaha b3Keteranganrinciusaha = new B3Rinciusaha();
    private B3r15Pekerja b3r15Keteranganpekerja = new B3r15Pekerja();

    private boolean success = false;

    private ArrayList<B2Umumusaha> listB2UmumUsaha = new ArrayList<B2Umumusaha>();
    private ArrayList<B3Rinciusaha> listB3Model = new ArrayList<B3Rinciusaha>();
    private ArrayList<ArrayList<B3r15Pekerja>> listAllB3R15 = new ArrayList<ArrayList<B3r15Pekerja>>();
    IntegerConverter ic = new IntegerConverter();
    
    public void insertAllBlok() {
        EntityManagerFactory emf = Persistence.createEntityManagerFactory("pkl53");
        EntityManager em = emf.createEntityManager();
        getModelB1();
        em.getTransaction().begin();   
//        em.persist(b1KeterangantempatModel);
        
        listB2UmumUsaha = getPanelBlok4().getListModel();
        int noArt = 1;
        for (B2Umumusaha b2 : listB2UmumUsaha) {
            System.out.println(getModelB1().getKks());
            b2.setKks(getModelB1().getKks());
            b2.setKKSArt(getModelB1().getKks()+String.valueOf(noArt));
            System.out.println(b2.getKKSArt());
            noArt++;
            em.persist(b2);
        }
        System.out.println("aaaaaaaaaa");
        for (int j=0; j<listAllB3R15.size(); j++) {
            getModelB3();
            int np = 1;
            for (B3r15Pekerja b3r15 : listAllB3R15.get(j)) {
                b3r15.setKKSArtNup(new B3Rinciusaha(listB3Model.get(j).getKKSArtNup()));
                b3r15.setKKSArtNupNp(listB3Model.get(j).getKKSArtNup()+Integer.toString(b3r15.getB3r15a()));
                np++;
            }
            listB3Model.get(j).setB3r15PekerjaList(listAllB3R15.get(j));
            em.persist(listB3Model.get(j));
        }
        System.out.println("bbbbbbbbbb");
        em.getTransaction().commit();
        em.close();
        success = true;
    }


    public boolean isSuccess() {
        return success;
    }

    /**
     * @return the listB3Model
     */
    public ArrayList<B3Rinciusaha> getListB3Model() {
        return listB3Model;
    }

    public B1Tempat getModelB1() {
        //persiapan blok 1 pekerja
//        setB1KeterangantempatModel(new B1Tempat());
        getB1KeterangantempatModel().setKks(getPanelBlok123().getB1R1().getText()
                + getPanelBlok123().getB1R2().getText()
                + getPanelBlok123().getB1R3().getText()
                + getPanelBlok123().getB1R4().getText()
                + getPanelBlok123().getB1R5a().getText()
                + getPanelBlok123().getB1R5b().getText()
                + getPanelBlok123().getB1R6().getText());

        OpsiB1r4 b1r4 = new OpsiB1r4(getPanelBlok123().getB1R4().getText());
        getB1KeterangantempatModel().setNimPencacah(new Mahasiswa(getPanelBlok123().getB2C1R2().getText()));
        getB1KeterangantempatModel().setB1r1(getPanelBlok123().getB1R1().getText());
        getB1KeterangantempatModel().setB1r2(getPanelBlok123().getB1R2().getText());
        getB1KeterangantempatModel().setB1r3(getPanelBlok123().getB1R3().getText());
        getB1KeterangantempatModel().setB1r4(b1r4);
        getB1KeterangantempatModel().setB1r5a(new NoBs(getPanelBlok123().getB1R1().getText(), getPanelBlok123().getB1R2().getText(), getPanelBlok123().getB1R3().getText(), getPanelBlok123().getB1R5a().getText()));
        getB1KeterangantempatModel().setB1r5b(getPanelBlok123().getB1R5b().getText());
        getB1KeterangantempatModel().setB1r6(getPanelBlok123().getB1R6().getText());
        getB1KeterangantempatModel().setB1r7(getPanelBlok123().getB1R7().getText());
        getB1KeterangantempatModel().setB1r8(getPanelBlok123().getB1R8().getText());

        return getB1KeterangantempatModel();
    }
    
    public B2Umumusaha getModelB2(){
        
        
        return b2Umumusaha;
    }

    public B3Rinciusaha getModelB3() {
        //blok3
        b3Keteranganrinciusaha.setKKSArt( new B2Umumusaha(getB1KeterangantempatModel().getKks()+ getPanelBlok5().getB5R1NOART().getText()));
        b3Keteranganrinciusaha.setKKSArtNup(getB1KeterangantempatModel().getKks() + getPanelBlok5().getB5R1NOART().getText() + getPanelBlok5().getB5R2().getText());
        OpsiB3r5 b3r5 = new OpsiB3r5(getPanelBlok5().getB5R5().getText());
        b3Keteranganrinciusaha.setB3r5(b3r5);
        OpsiB3r6 b3r6 = new OpsiB3r6(getPanelBlok5().getB5R6().getText());
        b3Keteranganrinciusaha.setB3r6(b3r6);
        OpsiB3r10 b3r10 = new OpsiB3r10(getPanelBlok5().getB5R10().getText());
        b3Keteranganrinciusaha.setB3r10(b3r10);
        OpsiYaTidakTidaktau ytt = new OpsiYaTidakTidaktau(getPanelBlok5().getB5R11A().getText());
        b3Keteranganrinciusaha.setB3r11a(ytt);
        ytt = new OpsiYaTidakTidaktau(getPanelBlok5().getB5R11B().getText());
        b3Keteranganrinciusaha.setB3r11b(ytt);
        ytt = new OpsiYaTidakTidaktau(getPanelBlok5().getB5R11C().getText());
        b3Keteranganrinciusaha.setB3r11c(ytt);
        ytt = new OpsiYaTidakTidaktau(getPanelBlok5().getB5R11D().getText());
        b3Keteranganrinciusaha.setB3r11d(ytt);
        OpsiB3r13b b3r13 = new OpsiB3r13b(getPanelBlok5().getB5R13KODE_APR().getText());
        b3Keteranganrinciusaha.setB3R13Bapr13(b3r13);
        b3r13 = new OpsiB3r13b(getPanelBlok5().getB5R13KODE_MEI().getText());
        b3Keteranganrinciusaha.setB3R13Bmei13(b3r13);
        b3r13 = new OpsiB3r13b(getPanelBlok5().getB5R13KODE_JUN().getText());
        b3Keteranganrinciusaha.setB3R13Bjun13(b3r13);
        b3r13 = new OpsiB3r13b(getPanelBlok5().getB5R13KODE_JUL().getText());
        b3Keteranganrinciusaha.setB3R13Bjul13(b3r13);
        b3r13 = new OpsiB3r13b(getPanelBlok5().getB5R13KODE_AGT().getText());
        b3Keteranganrinciusaha.setB3R13Bagt13(b3r13);
        b3r13 = new OpsiB3r13b(getPanelBlok5().getB5R13KODE_SEP().getText());
        b3Keteranganrinciusaha.setB3R13Bsep13(b3r13);
        b3r13 = new OpsiB3r13b(getPanelBlok5().getB5R13KODE_OKT().getText());
        b3Keteranganrinciusaha.setB3R13Bokt13(b3r13);
        b3r13 = new OpsiB3r13b(getPanelBlok5().getB5R13KODE_NOV().getText());
        b3Keteranganrinciusaha.setB3R13Bnov13(b3r13);
        b3r13 = new OpsiB3r13b(getPanelBlok5().getB5R13KODE_DES().getText());
        b3Keteranganrinciusaha.setB3R13Bdes13(b3r13);
        b3r13 = new OpsiB3r13b(getPanelBlok5().getB5R13KODE_JAN().getText());
        b3Keteranganrinciusaha.setB3R13Bjan14(b3r13);
        b3r13 = new OpsiB3r13b(getPanelBlok5().getB5R13KODE_FEB().getText());
        b3Keteranganrinciusaha.setB3R13Bfeb14(b3r13);
        b3r13 = new OpsiB3r13b(getPanelBlok5().getB5R13KODE_MAR().getText());
        b3Keteranganrinciusaha.setB3R13Bmar14(b3r13);
        b3Keteranganrinciusaha.setB3R19utama(getPanelBlok5c().getB5R19_UTAMA().getText());
        b3Keteranganrinciusaha.setB3R19lainnya(getPanelBlok5c().getB5R19_LAIN().getText());
        
        OpsiB3r21 b3r21 = new OpsiB3r21(getPanelBlok5c().getB5R21().getText());
        b3Keteranganrinciusaha.setB3r21(b3r21);
        OpsiB3r22b b3r22b = new OpsiB3r22b(getPanelBlok5c().getB5R22B().getText());
        b3Keteranganrinciusaha.setB3r22b(b3r22b);
        OpsiB3r22d b3r22d = new OpsiB3r22d(getPanelBlok5c().getB5R22D().getText());
        b3Keteranganrinciusaha.setB3r22d(b3r22d);
        OpsiB3r22f b3r22f = new OpsiB3r22f(getPanelBlok5c().getB5R22F().getText());
        b3Keteranganrinciusaha.setB3r22f(b3r22f);
        OpsiB3r23a b3r23a = new OpsiB3r23a(getPanelBlok5c().getB5R23A().getText());
        b3Keteranganrinciusaha.setB3r23a(b3r23a);
        OpsiB3R34R35 b3r34 = new OpsiB3R34R35(getPanelBlok5d().getB5R34().getText());
        b3Keteranganrinciusaha.setB3r34(b3r34);
        OpsiB3R34R35 b3r35 = new OpsiB3R34R35(getPanelBlok5d().getB5R35().getText());
        b3Keteranganrinciusaha.setB3r35(b3r35);
        OpsiB3r36 b3r36 = new OpsiB3r36(getPanelBlok5d().getB5R36().getText());
        b3Keteranganrinciusaha.setB3r36(b3r36);
        OpsiB3r26 b3r26 = new OpsiB3r26(getPanelBlok5d().getB5R26A().getText());
        b3Keteranganrinciusaha.setB3r26(b3r26);

        IntegerConverter ic = new IntegerConverter();
        b3Keteranganrinciusaha.setB3r1a(getPanelBlok5().getB5R1NAMA().getText());
        b3Keteranganrinciusaha.setB3r1b(ic.convertForward(getPanelBlok5().getB5R1NOART().getText()));
        b3Keteranganrinciusaha.setB3r2(ic.convertForward(getPanelBlok5().getB5R2().getText()));
        b3Keteranganrinciusaha.setB3r3(ic.convertForward(getPanelBlok5().getB5R3().getText()));
        b3Keteranganrinciusaha.setB3r4a(ic.convertForward(getPanelBlok5().getB5R4BULAN().getText()));
        b3Keteranganrinciusaha.setB3r4b(ic.convertForward(getPanelBlok5().getB5R4TAHUN().getText()));
        b3Keteranganrinciusaha.setB3R5lainnya(getPanelBlok5().getB5R5_10_LAIN().getText());
        b3Keteranganrinciusaha.setB3r7a(ic.convertForward(getPanelBlok5().getB5R7().getText()));
        b3Keteranganrinciusaha.setB3r7b(ic.convertForward(getPanelBlok5().getB5R7DIBAYAR().getText()));
        b3Keteranganrinciusaha.setB3r8(ic.convertForward(getPanelBlok5().getB5R8().getText()));
        b3Keteranganrinciusaha.setB3r9(ic.convertForward(getPanelBlok5().getB5R9().getText()));
        b3Keteranganrinciusaha.setB3R11Elainnya(getPanelBlok5().getB5R11E_LAIN().getText());
        b3Keteranganrinciusaha.setB3r12a(ic.convertForward(getPanelBlok5().getB5R12A().getText()));
        b3Keteranganrinciusaha.setB3r12b(ic.convertForward(getPanelBlok5().getB5R12B().getText()));
        b3Keteranganrinciusaha.setB3r12c(ic.convertForward(getPanelBlok5().getB5R12C().getText()));
        b3Keteranganrinciusaha.setB3r12d(ic.convertForward(getPanelBlok5().getB5R12D().getText()));
        b3Keteranganrinciusaha.setB3r14(ic.convertForward(getPanelBlok5().getB5R14().getText()));
        
        b3Keteranganrinciusaha.setB3r16(ic.convertForward(getPanelBlok5b().getB5R16().getText()));
        b3Keteranganrinciusaha.setB3r17a1(ic.convertForward(getPanelBlok5b().getB5R17A_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17a2(ic.convertForward(getPanelBlok5b().getB5R17A_NON().getText()));
        b3Keteranganrinciusaha.setB3r17b1(ic.convertForward(getPanelBlok5b().getB5R17B_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17b2(ic.convertForward(getPanelBlok5b().getB5R17B_NON().getText()));
        b3Keteranganrinciusaha.setB3r17c1a(ic.convertForward(getPanelBlok5b().getB5R17CI_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17c2a(ic.convertForward(getPanelBlok5b().getB5R17CI_NON().getText()));
        b3Keteranganrinciusaha.setB3r17c1b(ic.convertForward(getPanelBlok5b().getB5R17CII_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17c2b(ic.convertForward(getPanelBlok5b().getB5R17CII_NON().getText()));
        b3Keteranganrinciusaha.setB3r17c1c(ic.convertForward(getPanelBlok5b().getB5R17CIII_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17c2c(ic.convertForward(getPanelBlok5b().getB5R17CIII_NON().getText()));
        b3Keteranganrinciusaha.setB3r17d1a(ic.convertForward(getPanelBlok5b().getB5R17DI_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17d1b(ic.convertForward(getPanelBlok5b().getB5R17DI_NON().getText()));
        b3Keteranganrinciusaha.setB3r17d2a(ic.convertForward(getPanelBlok5b().getB5R17DII_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17d2b(ic.convertForward(getPanelBlok5b().getB5R17DII_NON().getText()));
        b3Keteranganrinciusaha.setB3r17e1(ic.convertForward(getPanelBlok5b().getB5R17E_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17e2(ic.convertForward(getPanelBlok5b().getB5R17E_NON().getText()));
        b3Keteranganrinciusaha.setB3r17f1(ic.convertForward(getPanelBlok5b().getB5R17F_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17f2(ic.convertForward(getPanelBlok5b().getB5R17F_NON().getText()));
        b3Keteranganrinciusaha.setB3r17g1(ic.convertForward(getPanelBlok5b().getB5R17G_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17g2(ic.convertForward(getPanelBlok5b().getB5R17G_NON().getText()));
        b3Keteranganrinciusaha.setB3r17h1(ic.convertForward(getPanelBlok5b().getB5R17H_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17h2(ic.convertForward(getPanelBlok5b().getB5R17H_NON().getText()));
        b3Keteranganrinciusaha.setB3r17i1(ic.convertForward(getPanelBlok5b().getB5R17I_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17i2(ic.convertForward(getPanelBlok5b().getB5R17I_NON().getText()));
        b3Keteranganrinciusaha.setB3r17j1(ic.convertForward(getPanelBlok5b().getB5R17J_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17j2(ic.convertForward(getPanelBlok5b().getB5R17J_NON().getText()));
        b3Keteranganrinciusaha.setB3r17k1(ic.convertForward(getPanelBlok5b().getB5R17K_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17k2(ic.convertForward(getPanelBlok5b().getB5R17K_NON().getText()));
        b3Keteranganrinciusaha.setB3r17l1(ic.convertForward(getPanelBlok5b().getB5R17L_PERT().getText()));
        b3Keteranganrinciusaha.setB3r17l2(ic.convertForward(getPanelBlok5b().getB5R17L_NON().getText()));
        b3Keteranganrinciusaha.setB3R17totalPengeluaran(ic.convertForward(getPanelBlok5b().getB5R17H_PERT().getText()));
        b3Keteranganrinciusaha.setB3R17labarugi(ic.convertForward(getPanelBlok5b().getB5R17H_NON().getText()));


        b3Keteranganrinciusaha.setB3r18b1(ic.convertForward(getPanelBlok5c().getB5R18B_LAKI().getText()));
        b3Keteranganrinciusaha.setB3r18b2(ic.convertForward(getPanelBlok5c().getB5R18B_PR().getText()));
        b3Keteranganrinciusaha.setB3r18a(getPanelBlok5c().getB5R18A().getText());
        
        b3Keteranganrinciusaha.setB3R19lainnyasebutkan(getPanelBlok5c().getB5R19_LL().getText());
        b3Keteranganrinciusaha.setB3r20a(getPanelBlok5c().getB5R20A().getText());
        b3Keteranganrinciusaha.setB3r20b(getPanelBlok5c().getB5R20B().getText());
        b3Keteranganrinciusaha.setB3R21lainnya(getPanelBlok5c().getB5R21Lainnya().getText());
        b3Keteranganrinciusaha.setB3r22a(getPanelBlok5c().getB5R22A().getText());
        b3Keteranganrinciusaha.setB3R22Blainnya(getPanelBlok5c().getB5R22BLainnya().getText());
        b3Keteranganrinciusaha.setB3R22Dlainnya(getPanelBlok5c().getB5R22D_LAIN().getText());
        b3Keteranganrinciusaha.setB3R22Flainnya(getPanelBlok5c().getB5R22FLainnya().getText());
        b3Keteranganrinciusaha.setB3R22G9lainnya(getPanelBlok5c().getB5R22G9_LAIN().getText());
        b3Keteranganrinciusaha.setB3r22c(getPanelBlok5c().getB5R22C().getText());
        b3Keteranganrinciusaha.setB3r22e(getPanelBlok5c().getB5R22E().getText());
        b3Keteranganrinciusaha.setB3r22g1(getPanelBlok5c().getB5R22G1().getText());
        b3Keteranganrinciusaha.setB3r22g2(getPanelBlok5c().getB5R22G2().getText());
        b3Keteranganrinciusaha.setB3r22g3(getPanelBlok5c().getB5R22G3().getText());
        b3Keteranganrinciusaha.setB3r22g4(getPanelBlok5c().getB5R22G4().getText());
        b3Keteranganrinciusaha.setB3r22g5(getPanelBlok5c().getB5R22G5().getText());
        b3Keteranganrinciusaha.setB3r22g6(getPanelBlok5c().getB5R22G6().getText());
        b3Keteranganrinciusaha.setB3r22g7(getPanelBlok5c().getB5R22G7().getText());
        b3Keteranganrinciusaha.setB3r22g8(getPanelBlok5c().getB5R22G8().getText());
        b3Keteranganrinciusaha.setB3r23b1(getPanelBlok5c().getB5R23B1().getText());
        b3Keteranganrinciusaha.setB3r23b2(getPanelBlok5c().getB5R23B2().getText());
        b3Keteranganrinciusaha.setB3r23b3(getPanelBlok5c().getB5R23B3().getText());
        b3Keteranganrinciusaha.setB3r23b4(getPanelBlok5c().getB5R23B4().getText());
        b3Keteranganrinciusaha.setB3r23b5(getPanelBlok5c().getB5R23B5().getText());
        b3Keteranganrinciusaha.setB3r23b6(getPanelBlok5c().getB5R23B6().getText());
        b3Keteranganrinciusaha.setB3r23b7(getPanelBlok5c().getB5R23B7().getText());
        b3Keteranganrinciusaha.setB3r23b8(getPanelBlok5c().getB5R23B8().getText());
        b3Keteranganrinciusaha.setB3r23b9(getPanelBlok5c().getB5R23B9().getText());
        b3Keteranganrinciusaha.setB3r23b10(getPanelBlok5c().getB5R23B10().getText());
        b3Keteranganrinciusaha.setB3r23b11(getPanelBlok5c().getB5R23B11().getText());
        b3Keteranganrinciusaha.setB3R23B12lainnya(getPanelBlok5c().getB5R23B13_LAIN().getText());
        
        b3Keteranganrinciusaha.setB3r24(getPanelBlok5d().getB5R24().getText());
        b3Keteranganrinciusaha.setB3r25a(getPanelBlok5d().getB5R25A().getText());
        b3Keteranganrinciusaha.setB3r25b(getPanelBlok5d().getB5R25B().getText());
        b3Keteranganrinciusaha.setB3r25c(getPanelBlok5d().getB5R25C().getText());
        b3Keteranganrinciusaha.setB3r25d(getPanelBlok5d().getB5R25D().getText());
        b3Keteranganrinciusaha.setB3r25e(getPanelBlok5d().getB5R25E().getText());
        b3Keteranganrinciusaha.setB3r25f(getPanelBlok5d().getB5R25F().getText());
        b3Keteranganrinciusaha.setB3r25g(getPanelBlok5d().getB5R25G().getText());
        b3Keteranganrinciusaha.setB3r25h(getPanelBlok5d().getB5R25H().getText());
        b3Keteranganrinciusaha.setB3r25i(getPanelBlok5d().getB5R25I().getText());
        b3Keteranganrinciusaha.setB3r25j(getPanelBlok5d().getB5R25J().getText());
        b3Keteranganrinciusaha.setB3r25k(getPanelBlok5d().getB5R25K().getText());
        b3Keteranganrinciusaha.setB3r25l(getPanelBlok5d().getB5R25L().getText());
        b3Keteranganrinciusaha.setB3R25Mlainnya(getPanelBlok5d().getB5R25M_LAIN().getText());
        b3Keteranganrinciusaha.setB3R26lainnya(getPanelBlok5d().getB5R26Lainnya().getText());
        b3Keteranganrinciusaha.setB3r27a(getPanelBlok5d().getB5R27_1().getText());
        b3Keteranganrinciusaha.setB3r27b(getPanelBlok5d().getB5R27_2().getText());
        b3Keteranganrinciusaha.setB3r27c(getPanelBlok5d().getB5R27_3().getText());
        b3Keteranganrinciusaha.setB3r27d(getPanelBlok5d().getB5R27_4().getText());
        b3Keteranganrinciusaha.setB3r27e(getPanelBlok5d().getB5R27_5().getText());
        b3Keteranganrinciusaha.setB3r27f(getPanelBlok5d().getB5R27_6().getText());
        b3Keteranganrinciusaha.setB3r27g(getPanelBlok5d().getB5R27_7().getText());
        b3Keteranganrinciusaha.setB3r27h(getPanelBlok5d().getB5R27_8().getText());
        b3Keteranganrinciusaha.setB3r27i(getPanelBlok5d().getB5R27_9().getText());
        b3Keteranganrinciusaha.setB3R27Jlainnya(getPanelBlok5d().getB5R27_10_LAIN().getText());
        b3Keteranganrinciusaha.setB3r28(getPanelBlok5d().getB5R28().getText());
        b3Keteranganrinciusaha.setB3r29a(getPanelBlok5d().getB5R29_1().getText());
        b3Keteranganrinciusaha.setB3r29b(getPanelBlok5d().getB5R29_2().getText());
        b3Keteranganrinciusaha.setB3r29c(getPanelBlok5d().getB5R29_3().getText());
        b3Keteranganrinciusaha.setB3r30a(getPanelBlok5d().getB5R30A().getText());
        b3Keteranganrinciusaha.setB3r30b(getPanelBlok5d().getB5R30B().getText());
        b3Keteranganrinciusaha.setB3r30c(getPanelBlok5d().getB5R30C().getText());
        b3Keteranganrinciusaha.setB3r30d(getPanelBlok5d().getB5R30D().getText());
        b3Keteranganrinciusaha.setB3r31(getPanelBlok5d().getB5R31().getText());
        b3Keteranganrinciusaha.setB3r32(ic.convertForward(getPanelBlok5d().getB5R32().getText()));
        b3Keteranganrinciusaha.setB3r33(getPanelBlok5d().getB5R33().getText());
        
        return b3Keteranganrinciusaha;
    }

    /**
     * @param listB3Model the listB3Model to set
     */
    public void setListB3Model(ArrayList<B3Rinciusaha> listB3Model) {
        this.listB3Model = listB3Model;
    }

    /**
     * @param listAllB3R15 the listAllB3R15 to set
     */
    public void setListAllB3R15(ArrayList<ArrayList<B3r15Pekerja>> listAllB3R15) {
        this.listAllB3R15 = listAllB3R15;
    }

    /**
     * @return the panelBlok123
     */
    public BlokUsaha123 getPanelBlok123() {
        return panelBlok123;
    }

    /**
     * @param panelBlok123 the panelBlok123 to set
     */
    public void setPanelBlok123(BlokUsaha123 panelBlok123) {
        this.panelBlok123 = panelBlok123;
    }

    /**
     * @return the panelBlok4
     */
    public BlokUsaha4 getPanelBlok4() {
        return panelBlok4;
    }

    /**
     * @param panelBlok4 the panelBlok4 to set
     */
    public void setPanelBlok4(BlokUsaha4 panelBlok4) {
        this.panelBlok4 = panelBlok4;
    }

    /**
     * @return the panelBlok5
     */
    public BlokUsaha5 getPanelBlok5() {
        return panelBlok5;
    }

    /**
     * @param panelBlok5 the panelBlok5 to set
     */
    public void setPanelBlok5(BlokUsaha5 panelBlok5) {
        this.panelBlok5 = panelBlok5;
    }

    /**
     * @return the panelBlok5b
     */
    public BlokUsaha5B getPanelBlok5b() {
        return panelBlok5b;
    }

    /**
     * @param panelBlok5b the panelBlok5b to set
     */
    public void setPanelBlok5b(BlokUsaha5B panelBlok5b) {
        this.panelBlok5b = panelBlok5b;
    }

    /**
     * @return the panelBlok5c
     */
    public BlokUsaha5C getPanelBlok5c() {
        return panelBlok5c;
    }

    /**
     * @param panelBlok5c the panelBlok5c to set
     */
    public void setPanelBlok5c(BlokUsaha5C panelBlok5c) {
        this.panelBlok5c = panelBlok5c;
    }

    /**
     * @return the panelBlok5d
     */
    public BlokUsaha5D getPanelBlok5d() {
        return panelBlok5d;
    }

    /**
     * @param panelBlok5d the panelBlok5d to set
     */
    public void setPanelBlok5d(BlokUsaha5D panelBlok5d) {
        this.panelBlok5d = panelBlok5d;
    }

    /**
     * @return the b1KeterangantempatModel
     */
    public B1Tempat getB1KeterangantempatModel() {
        return b1KeterangantempatModel;
    }

    /**
     * @param b1KeterangantempatModel the b1KeterangantempatModel to set
     */
    public void setB1KeterangantempatModel(B1Tempat b1KeterangantempatModel) {
        this.b1KeterangantempatModel = b1KeterangantempatModel;
    }
}
